﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/MainPage.Master"
	CodeBehind="OfficerAttach.aspx.vb" Inherits="RWN.OfficerAttach" UICulture="th-TH" Culture="th-TH" %>

<%@ Register Assembly="NumericTextBox" Namespace="NumericTextBoxControl" TagPrefix="cc1" %>
<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
	Namespace="System.Web.UI" TagPrefix="asp" %>
<%@ Register Src="ucPopupOfficer.ascx" TagName="ucPopupOfficer" TagPrefix="uc1" %>
<%@ MasterType VirtualPath="~/MainPage.Master" %>
<%@ Register Assembly="Sarayut.ControlLibrary" Namespace="Sarayut.ControlLibrary" TagPrefix="cc2" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script type="text/javascript">

	</script>
    <style type="text/css">
                    
.text_blue {
	font-family: tahoma;
	font-size: 11px;
	color: #293071;
}

.text_blue {
	font-family: tahoma;
	font-size: 11px;
	color: #293071;
}

        .style3
        {
            height: 22px;
        }

        .style4
        {
            width: 150px;
        }

        .style5
        {
            width: 190px;
        }

        .style6
        {
            width: 150px;
            height: 20px;
        }
        .style7
        {
            height: 20px;
        }
        .style8
        {
            width: 150px;
            height: 22px;
        }

        .style9
        {
            width: 569px;
        }

    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server" 
		EnableScriptGlobalization="True">
	</asp:ScriptManager>
	<div>
	<asp:Label ID="lblHeader" runat="server" Font-Bold="True" ForeColor="#0099FF" 
        Text="แนบเอกสารเพิ่มเติมของนักธุรกิจ"></asp:Label>
    </div>
	<div>
		<hr />
	</div>
	<div>
        <table>
            <tr>
				<td class="style4">
					เลขที่ใบสมัคร 
                                :</td>
				<td width="100px">
				    			
					<asp:TextBox ID="txtOfficerID" runat="server" Width="70px" MaxLength="500" 
                        Enabled="False" Visible="False"></asp:TextBox>
					<asp:TextBox ID="txtOfficerAppID" runat="server" Width="250px" MaxLength="500" 
                        Enabled="False"></asp:TextBox>
				            </td>
				<td style="text-align: right" class="style5">
					หมายเลขโทรศัพท์ในการทำธุรกิจ
                                :</td>
				<td>
				    				
					<asp:TextBox ID="txtOfficerTel" runat="server" Width="250px" MaxLength="500" 
                        Enabled="False"></asp:TextBox>
				    				
                </td>
            </tr>
            <tr>
				<td class="style4">
					ชื่อ (ไทย) :</td>
				<td width="100px">
				    			
					<asp:TextBox ID="txtOfficerNameTH" runat="server" Width="250px" MaxLength="500" 
                        Enabled="False"></asp:TextBox>
				            </td>
				<td style="text-align: right" class="style5">
					นามสกุล :</td>
				<td>
				    				
					<asp:TextBox ID="txtOfficerLastNameTH" runat="server" Width="250px" 
                        MaxLength="500" Enabled="False"></asp:TextBox>
				    				
                </td>
            </tr>
        </table>
        <table>
            <tr>
                <td>
                    <table style="width: 900px">
                        <tr>
                            <td colspan="2" 
                                style="background-color: #CCCCCC; color: #FFFFFF; font-weight: bold" 
                                class="style3">
                                ข้อมูลการชำระเงิน</td>
                        </tr>
                        <tr>
                            <td class="style4">
                                ชื่อเอกสาร
                                <asp:Label ID="lblStar1" runat="server" ForeColor="Red" Text="*"></asp:Label>
                                :
                            </td>
                             <td>
					<asp:TextBox ID="txtDocumentName" runat="server" Width="695px" MaxLength="500"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td class="style4">
                                เอกสารแนบ <asp:Label ID="lblStar5" runat="server" ForeColor="Red" Text="*"></asp:Label>
                                :
                            </td>
                             <td>
					             <table border="0" cellpadding="0" cellspacing="0" style="width:100%;">
                                     <tr>
                                         <td class="style9">
					             <asp:FileUpload ID="fupAttach" runat="server" Width="570px" />
				                         </td>
                                         <td>
&nbsp;
                                             <asp:CheckBox ID="chbUpload" runat="server" Checked="True" 
                                                 Text="อนุญาติให้ทับไฟล์เก่า" />
                                         </td>
                                     </tr>
                                 </table>
				            </td>
                        </tr>
                        <tr>
                            <td class="style6">
                                หมายเหตุ
                                :
                            </td>
                             <td class="style7">
					<asp:TextBox ID="txtDescription" runat="server" Width="695px" MaxLength="500"></asp:TextBox>
				            </td>
                        </tr>
                        <tr>
                            <td class="style8">
                                </td>
                             <td class="style3">
	<asp:Label ID="lblHeader0" runat="server" Font-Bold="True" ForeColor="Red" 
        Text="เอกสารแนบขนาดไม่เกิน 2 MB และนามสกุลคือ .pdf, .jpg และ .gif เท่านั้น"></asp:Label>
                            </td>
                        </tr>
                        </table>
                </td>
            </tr>
            <tr>
                <td style="text-align: right">
					<asp:Button ID="btnSave" runat="server" Text="บันทึก" Width="80px" />
					&nbsp;<asp:Button ID="btnReset" runat="server" Text="ยกเลิก" Width="80px" />
                </td>
            </tr>
            <tr>
                <td>
	                <asp:GridView ID="gvList" runat="server" AllowPaging="True" 
                            AutoGenerateColumns="False" PageSize="20" Width="100%" DataKeyNames="ATTACH_ID">
				            <AlternatingRowStyle BackColor="White" />
			            <Columns>
                            <asp:TemplateField HeaderText="เรียกดู">
                                <ItemTemplate>
                                    <table border="0" cellpadding="1" cellspacing="1">
                                        <tr>
                                            <td style="height: 18px;" align="center"><asp:LinkButton  runat="server" ID="btnShowfile" AlternateText="Showfile" ToolTip="Showfile" CommandArgument='<%# Eval("ATTACH_ID") %>' CommandName="Showfile" >เรียกดู</asp:LinkButton></td>
                                        </tr>
                                    </table>
                                </ItemTemplate>
                                <ItemStyle HorizontalAlign="Center" />
                                <HeaderStyle HorizontalAlign="Center"  CssClass="table_header" Width="10%" />
                            </asp:TemplateField>   
                            <asp:TemplateField HeaderText="ลบ">
                                <ItemTemplate>
                                    <table border="0" cellpadding="1" cellspacing="1">
                                        <tr>
                                            <td style="height: 18px;" align="center"><asp:LinkButton  runat="server" ID="btnDelete" AlternateText="DeleteFile" ToolTip="DeleteFile" CommandArgument='<%# Eval("ATTACH_ID") %>' CommandName="DeleteFile" >ลบ</asp:LinkButton></td>
                                        </tr>
                                    </table>
                                </ItemTemplate>
                                <ItemStyle HorizontalAlign="Center" />
                                <HeaderStyle HorizontalAlign="Center"  CssClass="table_header" Width="10%" />
                            </asp:TemplateField>   
				            <asp:BoundField DataField="ATTACH_FILE_NAME" HeaderText="ชื่อเอกสาร" >
				                <HeaderStyle Width="40%" />
                                <ItemStyle HorizontalAlign="Center" />
                            </asp:BoundField>
				            <asp:BoundField DataField="ATTACH_FILE_REMARK" HeaderText="หมายเหตุ" >
				                <HeaderStyle Width="40%" />
                                <ItemStyle HorizontalAlign="Center" />
                            </asp:BoundField>
			            </Columns>
		                <HeaderStyle BackColor="White" Height="30px" />
		                <PagerStyle BackColor="White" />
		                <RowStyle Height="20px" />
		            </asp:GridView>
                </td>
            </tr>
            <tr>
                <td style="background-color: #CCCCCC">
	                &nbsp;</td>
            </tr>
        </table>
	</div>
	<div>
	</div>

	<!-- ไว้เป็น Template สำหรับออก excel -->
	</asp:Content>
